package com.byteshake.ddoffice.ui.login.vm

import com.byteshake.common.base.IUiState
import com.byteshake.ddoffice.model.bean.LoginUserInfo

data class LoginState(val loginLoginState: LoginLoginState, val registerState: RegisterState, val sendCodeState: SendCodeState) :
    IUiState

sealed class LoginLoginState {
    data object INIT : LoginLoginState()
    data class SUCCESS(val models: LoginUserInfo) : LoginLoginState()
}

sealed class RegisterState {
    data object INIT : RegisterState()
    data class SUCCESS(val models: List<String>) : RegisterState()
}

sealed class SendCodeState {
    data object INIT : SendCodeState()
    data class SUCCESS(val models: List<String>) : SendCodeState()
}